* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body { 
    font: 13px "微软雅黑", Helvetica, Arial; 
    background: url('../image/bg.jpeg');
    background-size: cover;
} 
input{
    outline: none;
}
.name {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background-color:rgb(255, 255, 255);
    text-align: center;
    padding-top: 35vh;
}
.passwd {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background-color:rgb(255, 255, 255);
    text-align: center;
    padding-top: 35vh;
}
.name input {
    width: 200px;
    border: none;
    border-bottom: 2px solid #bbb;
    background-color: #ffffff;
    font-size: 23px;
    color: #555;
    text-align: center;
}
.name button {
    display: block;
    width: 107px;
    height: 36px;
    margin: 0 auto;
    border: none;
    background-color: #18a724;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    font-size: 17px;
    margin-top: 20px;
    cursor: pointer;
}

.main {
    width: 1090px;
    height: 700px;
    margin: 7vh auto; 
    border: 2px rgb(255, 255, 255) solid; 
    border-radius: 10px;  
    
    background-color: rgba(255, 255, 255, 1);
    position: relative;
    left: 0;
}
.header {
    height: 85px;
    border-bottom: 2px solid #eee;
    font-size: 23px;
    padding-left: 10px;
    padding-top: 10px;
    color: #555;
}
.header img {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    vertical-align: middle;
}
#container {
    height: 470px;
    display: flex;
}
.conversation {
    width: 880px;
    border-right: 2px rgb(255, 255, 255) solid;
}
#messages {
    height: 400px;
    padding: 20px 10px 0px 10px;
    overflow-y: auto;
} 
 /*滚动条样式*/
#messages::-webkit-scrollbar {/*滚动条整体样式*/
    width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 4px;
}
#messages::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.2);
}
#messages::-webkit-scrollbar-track {/*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 0;
    background: rgba(0,0,0,0.1);
}
p.system {
    color: #888;
    text-align: center;
    margin: 5px;
}
p.system span {
    background-color: #eee;
    border-radius: 9px;
    padding: 1px 5px;    
    margin-bottom: 7px;
    display: inline-block;
}
#messages li {
    list-style: none;
    width: 100%;
    float: left;
    margin-bottom: 5px;
}
#messages li img {
    width: 40px;
    height: 40px;
    border-radius: 20px;
}
#messages li p img {
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}
#messages li p .sendImg {
    max-width: 300px;
    max-height: 188px;
    width: auto;
    height: auto;
    border-radius: 5px;
}
#messages li p span {
    padding-top: 7px;  
}
.left img {
    margin-right: 8px;
}
.right img {
    margin-left: 8px;
}
.left img, .left div {
    float: left;
}
.left span {
    text-align: left;
}
.right span {
    text-align: right;
}
.right p {
    float: right;
}
.right img, .right div {
    float: right;
}
#messages li div>span {
    display: block;
    color: #555; 
    padding-left: 2px;
}
#messages li div p {
    display: flex;
    max-width: 300px;
    height: auto;
    padding: 10px;
    margin-top: 5px;
    word-wrap: break-word;  /* 文本自动换行 */
    font-size: 15px;
    border-radius: 5px;
}
.left p {
    background-color: #d5d3d3;
}
.right p {
    background-color: #18a724;
}   
form {
    height: 121px;
    border-top: 1px #ddd solid;
    position: relative;
}
.edit {
    width: 100%;
    height: 33px;
    color: #7f8393;
    font-size: 19px;
    line-height: 33px;
    padding-left: 10px;
    position: relative;
}
.edit i {
    padding: 5px 6px;
    cursor: pointer;
}
.edit i:hover {
    background-color: #e2e2e2 !important;
}
.edit .selectBox {
    position: absolute;
    bottom: 34px;
    left: 0px;
    z-index: 5;
    background-color: #fff;
}  
.shaking {
    animation: run 0.2s infinite;
}
@keyframes run {
    0% {
        left: 0;
    }
    25% {
        left: -7px;
    }
    50% {
        left: 7px;
    }
    100% {
        left: 0;
    }
}
.edit #file {
    width: 32.36px;
    height: 29px;
    opacity: 0;
    z-index: 5;
}
.edit #img {
    z-index: 0;
    margin-left: -43px;
}
#color {
    width: 25px;
    border: none;
    cursor: pointer;
    background: none;
    opacity: 0;
    position: relative;
    z-index: 5;
}
#color:focus {
    outline: none;
}
.edit #font {
    position: absolute;
    left: 9px;
    top: 3px;
    z-index: 0;
}
.smile {
    width: 460px;
    height: auto;
    border: 1px #eee solid; 
    box-shadow: 1px 1px 1px #ccc;
    padding-top: 5px;
    box-sizing: border-box;
}
.smile p {
    height: 35px;
    font-size: 15px;
    color: #555;
    line-height: 35px;
    padding-left: 20px;
    box-sizing: border-box;
}
.emoji {
    width: 100%;
    height: 210px; 
    overflow-y: scroll;
    padding: 0 17px;
}
.emoji li {
    list-style: none;
    width: 35px;
    height: 35px;
    line-height: 35px;
    box-sizing: border-box;
    overflow: hidden;
    padding-top: 4px;
    padding-left: 2px;
    display: inline-block;
    margin: 0;
}
.emoji li:hover {
    padding-top: 1px;
    background-color: #f3f3f4;
}
.emoji li img {
    width: 30px;
    height: 30px;
}

.emoji::-webkit-scrollbar {/*滚动条整体样式*/
    width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 4px;
}
.emoji::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.2);
}
.emoji::-webkit-scrollbar-track {/*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 0;
    background: rgba(0,0,0,0.1);
} 

textarea {
    display: block;
    width: 100%;
    height: 130px;
    padding-left: 5px;
    padding-top: 5px;
    resize: none;
    font-size: 16px;
    background: none;
    border: none;
    font-family: '微软雅黑';
}
textarea:focus, .btn:focus, .name input:focus, .name button:focus {
    outline: none;
}
 /*滚动条样式*/
textarea::-webkit-scrollbar {/*滚动条整体样式*/
    width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 4px;
}
textarea::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.2);
}
textarea::-webkit-scrollbar-track {/*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 0;
    background: rgba(0,0,0,0.1);
}
button.btn {
    width: 72px;
    height: 25px;
    float: right;
    margin-right: 5px;
    background-color: #18a724;
    border-radius: 3px;
    border: none;
    color: #fff;
    cursor: pointer;
} 
button.btn.rBtn {
    margin-right: 10px;
}
.btn:hover {
    background-color: #18a724;
}
.contacts {
    width: 210px;
    height: 100%;
    padding: 6px;
}
.contacts h1 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}
.contacts ul {
    width: 100%;
}
.contacts li {
    display: inline-block;
    width: 23%;
    margin-right: 2%;
    height: 65px;
    text-align: center;
    margin-bottom: 5px;
}
.contacts li img {
    width: 100%;
    height: 45.5px;
}
.contacts li>span {
    display: inline-block;
    width: 100%;
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.contacts p {
    text-align: center;
    margin-top: 70px;
    color: #555;
}